Skip to content

Add AppArmor custom rules - #238

Merged
chombium merged 1 commit into
cloudfoundry:mainfrom
corporatemax:add-apparmor-custom-rules
Apr 20, 2026
Merged

Add AppArmor custom rules#238
chombium merged 1 commit into
cloudfoundry:mainfrom
corporatemax:add-apparmor-custom-rules

Conversation

@corporatemax

Copy link
Copy Markdown
Contributor

Starting from Ubuntu Noble a new AppArmor profile for RSyslogd is used which is enforced. This might cause some access permisson problems for some plugins like imfile in Syslog. On the other hand, if someone adds some custom rules and want to include some log files which are located in directories that are not covered with the current rules, they might need a way how to extend the AppArmor rules.

This change makes this configuration possible.

Description

Please include a summary of the change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing performed?

  • Unit tests
  • Integration tests
  • Acceptance tests

Checklist:

  • This PR is being made against the main branch, or relevant version branch
  • I have made corresponding changes to the documentation
  • I have added testing for my changes

If you have any questions, or want to get attention for a PR or issue please reach out on the #logging-and-metrics channel in the cloudfoundry slack

Starting from Ubuntu Noble a new AppArmor profile for RSyslogd is used
which is enforced. This might cause some access permisson problems for
some plugins like imfile in Syslog. On the other hand, if someone adds
some custom rules and want to include some log files which are located
in directories that are not covered with the current rules, they might
need a way how to extend the AppArmor rules.

This change makes this configuration possible.

Co-authored-by: Joris Baum <joris.baum@sap.com>
Co-authored-by: Jovan Kostovski <jovan.kostovski@sap.com>

@chombium chombium left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @corporatemax and @jorbaum for the changes.

@chombium
chombium merged commit 4cea900 into cloudfoundry:main Apr 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants